print("I am mymoudle.py, let's dance!")

def fibo(n):
    """递归计算斐波那契数列的第n项"""
    if n <= 0:
        return 0
    elif n == 1:
        return 1
    else:
        return fibo(n-1) + fibo(n-2)

if __name__ == "__main__":
    try:
        user_input = int(input("请输入一个数字以生成斐波那契数列: "))
        if user_input < 0:
            print("请输入一个非负整数。")
        else:
            fibonacci_sequence = [fibo(i) for i in range(user_input)]
            print(f"斐波那契数列: {fibonacci_sequence}")
    except ValueError:
        print("请输入一个有效的整数。")